import { setTreatise } from '@/services/question-treatise';
import { message } from 'antd';

export function submit(param: { id: number }) {
  return async function (opt) {
    const res = await setTreatise({ ...opt, ...param });
    switch (res.code) {
      case 200:
        message.success(res.data);
        break;
      default:
        break;
    }
  };
}
